package com.ibm.xhy.application;

import com.ibm.xhy.domain.User;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import java.util.List;

/**
 * Created by hanyxu on 2017/6/22.
 */

@RepositoryRestResource(collectionResourceRel = "people", path = "people")
public interface UserRepository extends PagingAndSortingRepository<User, String> {

        List<User> findByName(@Param("name") String name);


}
